package com.qf.efserver.user.personaldata.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ---做一个内核强大的人---
 *
 * @author HuaZi
 * @date 2024/11/14
 * @desc 希望我们都能遇到真诚的人
 */
@Data
@ApiModel(description = "前端用户信息修改参数接收类")
public class UsersUpdateParam {
    /**
     * 用户ID
     */
    @ApiModelProperty(name = "userId",value = "用户id")
    private Integer userId;
    /**
     * 用户名
     */
    @ApiModelProperty(name = "username",value = "用户名")
    private String username;
    /**
     * 身高
     */
    @ApiModelProperty(name = "height",value = "身高")
    private Double height;
    /**
     * 电话号
     */
    @ApiModelProperty(name = "phone",value = "电话号")
    private String phone;
    /**
     * 生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "birthday",value = "生日yyyy-MM-dd格式2003-04-05")
    private Date birthday;
    /**
     * 性别
     */
    @ApiModelProperty(name = "gender",value = "性别")
    private String gender;
    /**
     * 个性签名
     */
    @ApiModelProperty(name = "content",value = "个性签名")
    private String content;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updateTime",value = "更新时间")
    private Date updateTime;

    /**
     * 头像
     */
    @ApiModelProperty(name = "avatar",value = "头像")
    private String avatar;
}
